package com.xiaozhengkeji.colastartboot.base.mapper;

import com.xiaozhengkeji.colastartboot.base.entitys.UserConfig;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserConfigMapper {
    /**
     * delete by primary key
     * @param uid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer uid);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(UserConfig record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(UserConfig record);

    /**
     * select by primary key
     * @param uid primary key
     * @return object by primary key
     */
    UserConfig selectByPrimaryKey(Integer uid);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(UserConfig record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(UserConfig record);

    List<UserConfig> queryByAll(UserConfig userConfig);

    List<UserConfig> queryByUid(@Param("uid") Integer uid);
}